<%@ page contentType="text/html; charset=gbk"%>
<%@ page import="com.tool.*"%>
<%@ page import="com.dao.*"%>
<%@ page import="java.sql.*"%>


<%
	Connection conn = null;
	Statement stmt = null;
	try {
		String title = request.getParameter("title");

		conn = DBConnection.getConnection();
		stmt = conn.createStatement();
		int result = 0;

		ResultSet rs = stmt
				.executeQuery("select Title from T_RDReport where Title='"
						+ title + "'");

		if (rs.next()) {

			result = 1;

		}
		System.out.println(result);
		out.println(result);

	} finally {
		DBConnection.close(stmt);
		DBConnection.close(conn);
	}
%>







